import request from '@/utils/request'

// 查询宠物遗失列表
export function listLose(query) {
	return request({
		url: '/pets/lose/list',
		method: 'get',
		params: query
	})
}

// 查询宠物遗失详细
export function getLose(loseId) {
	return request({
		url: '/pets/lose/' + loseId,
		method: 'get'
	})
}

// 新增宠物遗失
export function addLose(data) {
	return request({
		url: '/pets/lose',
		method: 'post',
		data: data
	})
}

// 修改宠物遗失
export function updateLose(data) {
	return request({
		url: '/pets/lose',
		method: 'put',
		data: data
	})
}

// 删除宠物遗失
export function delLose(loseId) {
	return request({
		url: '/pets/lose/' + loseId,
		method: 'delete'
	})
}